import { request } from '@/utils/service'
import type * as Customer from '@/api/customer/types/customer'

export function queryCustomer(data: Customer.queryCustomerRequestData) {
  return request<Customer.queryCustomerResponse>({
    url: '/queryCustomer',
    method: 'post',
    data
  })
}
export function createCustomer(data: Customer.CreateCustomerRequestData) {
  return request<Customer.CreateCustomerResponse>({
    url: '/CreateCustomer',
    method: 'post',
    data
  })
}

export function CustomerRemove(data: Customer.CustomerRemoveRequestData) {
  return request<Customer.CustomerRemoveResponse>({
    url: '/CustomerRemove',
    method: 'post',
    data
  })
}

export function CustomerFrozenUnfreeze(data: Customer.CustomerFrozenUnfreezeRequestData) {
  return request<Customer.CustomerFrozenUnfreezeResponse>({
    url: '/CustomerFrozenUnfreeze',
    method: 'post',
    data
  })
}

export function CustomerMarkRenew(data: Customer.CustomerMarkRenewRequestData) {
  return request<Customer.CustomerMarkRenewResponse>({
    url: '/CustomerMarkRenew',
    method: 'post',
    data
  })
}
export function updateCustomer(data: Customer.updateCustomerRequestData) {
  return request<Customer.updateCustomerResponse>({
    url: '/updateCustomer',
    method: 'post',
    data
  })
}
